package com.backend.modules.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "部门参数")
public class DepartmentDTO {
    
    @Schema(description = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    private String name;
    
    @Schema(description = "父级ID")
    private Long parentId;
    
    @Schema(description = "部门类型(1:学院,2:专业,3:班级)", required = true)
    @NotNull(message = "部门类型不能为空")
    private Integer type;
    
    @Schema(description = "排序号")
    private Integer sort;
} 